gl renderer: Use rect_contains_rect() copy
authorTimm Bäder <mail@baedert.org>
Mon, 11 Jan 2021 20:49:30 +0000 (21:49 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 17 Jan 2021 03:39:26 +0000 (04:39 +0100)
And this way the contains_rect() inside
rounded_inner_rect_contains_rect() goes from 3.3% to 0.79% in the
fishbowl when rendering the levelbars.

gsk/gl/gskglrenderer.c

index 70dfce97923b22b61d2760f59823514240dbbd21..c1ef336eed0d1ca1e9e8234c1ab393115b95ced1 100644 (file)
@@ -1554,7 +1554,7 @@ rounded_inner_rect_contains_rect (const GskRoundedRect  *rounded,
                       MAX (rounded->corner[GSK_CORNER_BOTTOM_LEFT].height,
                            rounded->corner[GSK_CORNER_BOTTOM_RIGHT].height);
 
-  return graphene_rect_contains_rect (&inner, rect);
+  return _graphene_rect_contains_rect (&inner, rect);
 }
 
 /* Current clip is NOT rounded but new one is definitely! */